package com.heima.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.pojo.domain.Node;
import com.heima.pojo.domain.NodePageVo;
import com.heima.pojo.vo.VmNodeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NodeMapper extends BaseMapper<Node> {


    List<NodePageVo> selNodePageVo(@Param("offset") Integer pageIndex, @Param("limit") Integer pageSize, String regionId, String name);

    List<VmNodeVo> getVmList(String nodeId);

    @Select("select COUNT(*) from tb_node")
    Integer countNode();
}
